<?php

namespace app\common\model;

use think\Model;

class AwardRelation extends Model
{
    protected $table = 'ycyp_award';
    public static $award_type_category = [0 => '推荐奖', 1 => '出局奖', 2 => '财富币奖'];
    public function getAwardTypeAttr($value)
    {
        return self::$award_type_category[$value];
    }
    public function setAwardTypeAttr($value)
    {
        $data = array_flip(self::$award_type_category);

        return $data[$value];
    }
}
